Skip to main content

All Questions

1vote
1answer
41views

How do I return XML to an API post request

I'm working on a plugin that deals with Twilio. Twilio makes a post request to the plugin and I have to respond with Twiml which is really just xml. If I try sending it through like this $wp_response =...
Eitan's user avatar
0votes
0answers
29views

Show Image in Plugin Development

I am developing a plugin. I am fetching information using API along with Image. My code is like below. `$this->short_code .= '<div class="ft_wi_weather_all" >' . ( ( ...
abu abu's user avatar
1vote
1answer
79views

how to send csv file to other server using wp_remote_post?

I am facing issue while sending csv file to api. when i use simple php curl request it works fine for me and it sends the file to server. here is my php code $curl = curl_init(); curl_setopt_array( $...
wp_dev's user avatar
0votes
0answers
32views

Can't save Image from external API into Database

I am trying to create a plugin that gets data from an external API and stores the data into the database. The data I am receiving, contains Texts and Images. I have to save them separately as in the ...
I. Antonov's user avatar
0votes
1answer
496views

WordPress getting data from external API

I am trying to create a Plugin that does the following jobs: Authenticate the user to get Bearer token 'access_token' Get data from API and store in Database I have checked all the APIs and ...
I. Antonov's user avatar
0votes
0answers
236views

How to consume external API from WordPress post editor and display the response data in the custom field?

I am developing a custom post type called "Team," where I will add some profiles of team members. I am using ACF for the custom field to add personal details of the members (I can also ...
Rousnay's user avatar
0votes
2answers
907views

Programmatically creating posts based on external JSON feed (asynchronously)

I am currently trying to create a Wordpress plugin which create posts in the Wordpress database based on data from an external JSON API. As an example this NewsAPI feed could be used: https://newsapi....
Joachim's user avatar
0votes
2answers
1kviews

External api call using wordpress

I want to start a new website and chose wordpress as my cmd, but im having a restriction. The website is all about api request to other websites and i triedto get an api to test it as an example. ...
Taofeeq Tajudeen 's user avatar
2votes
1answer
1kviews

Is it possible to create post in wordpress using postman?

We have tried to create a post in WordPress using postman, can't able to create one since we have received an error as you are not allowed to do this action Even though I entered the admin login, it ...
Ajith kumar's user avatar
0votes
0answers
114views

move setting data from wordpress api to codestar freamwork

I am coding a plugin that uses the Star code framework It should be mentioned that I had written this plugin using WordPress API before. Now I want to integrate and make it more advanced, but I ran ...
masoud nkh's user avatar
0votes
1answer
125views

How can I send api calls from my plugin?

I have a collection of REST APIs that our android app uses. We use POSTMAN to send requests and troubleshoot them. Now, I am working on a plugin where I am trying to send API calls to all the ...
Rajin Sharwar's user avatar
1vote
1answer
762views

base64_encode conflict with convert_smilies in wordpress

I am trying to show image in my wordpress website which get from third-party. They give me raw data of image. For showimg image, I need to convert raw data(which get from third-party) to base64_encode....
Mahidul Islam's user avatar
0votes
1answer
38views

Plugin index page code executes multiple times

I am developing a plugin that sends emails to users on activation. I am using SendinBlue API for this purpose. Right now, I am testing with just one email address (hardcoded) and static content. The ...
Subrata Sarkar's user avatar
0votes
1answer
86views

Building a REST API for your web app exposes primary keys of DB records?

I'm new to WP-REST and need to build a REST API for a wordpress project, but I'm somehow wondering about one aspect. Good practices say, and the built-in WP API for posts also shows, that you should ...
DevelJoe's user avatar
0votes
0answers
276views

Allow REST API Endpoint to specific user and hide from public

So I've been working on trying to figure this out, but I can't seem to get the right answer or even find docs online regarding this issue, so I'm reaching out to the community to see if I can get some ...
Test2's user avatar

153050per page
close